import request from '@/utils/request'
// 积分列表
export function getScoreList(query) {
  return request({
    url: '/score/getlist',
    method: 'get',
    params: query
  })
}

// 积分类型列表
export function scoretypelist(query) {
  return request({
    url: '/score/scoretypelist',
    method: 'get',
    params: query
  })
}

// 新增积分类型
export function addscoretype(data) {
  return request({
    url: '/score/addscoretype',
    method: 'post',
    data: data
  })
}

// 编辑积分类型
export function editscoretype(data) {
  return request({
    url: '/score/editscoretype',
    method: 'post',
    data: data
  })
}

// 删除积分类型
export function deletescoretype(data) {
  return request({
    url: '/score/deletescoretype',
    method: 'get',
    params: data
  })
}

// 新增积分
export function addScore(data) {
  return request({
    url: '/score/add',
    method: 'post',
    data: data
  })
}

// 编辑积分
export function editScore(data) {
  return request({
    url: '/score/edit',
    method: 'post',
    data: data
  })
}


// 荣誉列表
export function getHonorList(data) {
  return request({
    url: '/honor/getlist',
    method: 'get',
    params: data
  })
}

// 删除荣誉
export function deleteHonor(data) {
  return request({
    url: '/honor/delete',
    method: 'get',
    params: data
  })
}

// 新增荣誉
export function addHonor(data) {
  return request({
    url: '/honor/add',
    method: 'post',
    data: data
  })
}

// 编辑荣誉
export function editHonor(data) {
  return request({
    url: '/honor/edit',
    method: 'post',
    data: data
  })
}

